<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="ckfinder/ckfinder.js"></script>
<script type="text/javascript" src="js/article/article.js"></script>
<title>index</title>
</head>

<body>
	<form action="article/add" method="POST">
		<table>
			<tr>
				<td>标题</td>
				<td><input id="title" name="title" maxlength="100" size="50"></td>
			</tr>
			<tr>
				<td>发布人</td>
				<td></td>
			</tr>
			<tr>
				<td>发布时间</td>
				<td></td>
			</tr>
			<tr>
				<td>内容</td>
				<td><textarea id="content" name="content">输入文章</textarea></td>
			</tr>
			<tr>
				<td>菜单</td>
				<td>		
					<select name="menu1" id="menu1" onchange="getChildren()">
						<option value="-1">--选择--</option>
						<c:forEach var="menu" items="${menus}">								
							<option value="${menu.menuId}">${menu.name}</option>													
						</c:forEach>	
					</select>
					<span id="childrenMenus">					
					</span>
				</td>
			</tr>
			<tr>				
				<td colspan="2">
					<input type="button" value="保存" onclick="add()"/>
				</td>
			</tr>
		</table>			
		
		<script type="text/javascript">
			CKEDITOR.replace('content');
		</script>
	</form>
</body>
</html>
